package com.github.icloudpay.crm.core.biz;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.icloudpay.crm.core.entity.OrderHunter;
import com.github.icloudpay.crm.core.mapper.OrderHunterMapper;
import com.github.wxiaoqi.security.common.biz.BaseBiz;

/**
 * 猎手订单表
 *
 * @author centerroot
 * @email lfw6699@163.com
 * @date 2018-05-25 15:20:49
 */
@Service
public class OrderHunterBiz extends BaseBiz<OrderHunterMapper,OrderHunter> {
	
	private static final Logger logger = LoggerFactory.getLogger(OrderHunterBiz.class);
	@Autowired
	private OrderHunterMapper hunterMapper;
	
	
	/**
	 * 查询猎手订单列表
	 * @param map
	 * @return
	 */
	public Map<String, Object> queryOrderList(Map<String, Object> map) {
		logger.info("查询猎手订单列表参数。。。{}"+map);
		Map<String, Object> respMap = new HashMap<>();
		List<OrderHunter> list = hunterMapper.queryOrderList(map);
		respMap.put("orderList", list);
		return respMap;
	}

}